<html>
<head>
    <meta http-equiv="content-type" content="text/html, charset=utf-8">
    <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta content="telephone=no" name="format-detection">
    <title></title>
    <script type='text/javascript' src='{$Think.config.RESOURCEURL}wx_assets/js/zepto.1.1.3.min.js'></script>
    <script src="{$Think.config.RESOURCEURL}wx_assets/js/util.js{$Think.config.RESOURCE_VER}" type="text/javascript"></script>
</head>
<body style="background:#f0eff4;">
	<setcion class="container">
		<header class="header" style="height:5px;">
		</header>
		<section class="content" style="color:#666;text-align:center">
      <if condition="$code eq 15">
        <p> 当前未登录或登录已失效，请重新登录，<span style="color: red;" id="countDown">3s</span>后自动跳转到登录页…… </p>
      <else />
        <p> {$msg} </p>
      </if>
		</section>
	</setcion>
  <script type="text/javascript">
    if ('{$code}' == 15 || '{$code}' == 16) {
      var customerId = '{$customerId}' || $.util.getParam('customerId')
      var time = 3;
      var timer = setInterval(function(){
        $('#countDown').text(--time + 's');
        if (time <= 0) {
          clearInterval(timer);
          location.href = '{$Think.config.SERVER_HOST}call.html?customerId=' + customerId + '&module=personCenter&method=login&code={$code}&redirect_url=' + encodeURIComponent(location.href)
        }
      }, 1000)
    }
  </script>
</body>
</html>
